package com.znufe.exam.viewmodel.h5;

import com.znufe.exam.base.BasePage;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class H5ExamPaperPageRequestVM extends BasePage {
    
    @ApiModelProperty(name = "id" , value = "*****")

    private Integer id;

    @ApiModelProperty(name = "subjectId" , value = "学科")
    private Integer subjectId;

    @ApiModelProperty(name = "level" , value = "级别")
    private Integer level;

    @ApiModelProperty(name = "name" , value = "试卷名称")
    private String name;

    @ApiModelProperty(name = "paperType" , value = "试卷类型：( 0课堂互动（临时试卷）1正式考试  2班级试卷 3.时段试卷 4.推送试卷)")
    private Integer paperType;

    @ApiModelProperty(name = "taskExamId" , value = "******")
    private Integer taskExamId;

    public static H5ExamPaperPageRequestVM wipeBlank(H5ExamPaperPageRequestVM model) {
        if (model.getName() != null) {
            model.setName(model.getName().trim());
        }
        return model;
    }

}
